package com.otitan.la.forest.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author sunke
 * @email xxx
 * @date 2020-10-15 09:22:53
 */
@Data
@TableName("\"SYS_FILE_INFO\"")
@ApiModel(" 实体")
public class FileInfoEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 文件ID
     */
    @ApiModelProperty(value = "文件ID", required = false)
    @TableId("\"ID\"")
    private String id;

    /**
     * 业务ID
     */
    @ApiModelProperty(value = "业务ID", required = false)
    // @NotEmpty(message = "业务ID不能为空")
    // @Length(max = 36, message = "业务ID不能超过 36 个字符")
    @TableField("\"BUSINESS_ID\"")
    private String businessId;

    /**
     * 文件类型编码
     */
    @ApiModelProperty(value = "文件类型编码", required = false)
    // @NotEmpty(message = "文件类型编码不能为空")
    // @Length(max = 36, message = "文件类型编码不能超过 36 个字符")
    @TableField("\"FILE_TYPE_CODE\"")
    private String fileTypeCode;

    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称", required = false)
    // @NotEmpty(message = "文件名称不能为空")
    // @Length(max = 64, message = "文件名称不能超过 64 个字符")
    @TableField("\"FILE_NAME\"")
    private String fileName;

    /**
     * 文件路径
     */
    @ApiModelProperty(value = "文件路径", required = false)
    // @NotEmpty(message = "文件路径不能为空")
    // @Length(max = 36, message = "文件路径不能超过 36 个字符")
    @TableField("\"FILE_PATH\"")
    private String filePath;

    /**
     * 文件大小
     */
    @ApiModelProperty(value = "文件大小", required = false)
    // @NotEmpty(message = "文件大小不能为空")
    // @Length(max = 22, message = "文件大小不能超过 22 个字符")
    @TableField("\"FILE_SIZE\"")
    private Integer fileSize;

    /**
     * 是否是文件
     */
    @ApiModelProperty(value = "是否是文件", required = false)
    // @NotEmpty(message = "是否是文件不能为空")
    // @Length(max = 22, message = "是否是文件不能超过 22 个字符")
    @TableField("\"IS_FILE\"")
    private Integer isFile;

    /**
     * 上传人姓名
     */
    @ApiModelProperty(value = "上传人姓名", required = false)
    // @NotEmpty(message = "上传人姓名不能为空")
    // @Length(max = 64, message = "上传人姓名不能超过 64 个字符")
    @TableField("\"UPLOAD_USER_NAME\"")
    private String uploadUserName;

    /**
     * 后缀名
     */
    @ApiModelProperty(value = "后缀名", required = false)
    // @NotEmpty(message = "后缀名不能为空")
    // @Length(max = 64, message = "后缀名不能超过 64 个字符")
    @TableField("\"EXTEND_NAME\"")
    private String extendName;

    /**
     * 创建用户
     */
    @ApiModelProperty(value = "创建用户", required = false)
    @TableField(value = "\"CREATE_USER\"", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "\"CREATE_DATE\"", fill = FieldFill.INSERT)
    private Date createDate;

    /**
     * 编辑用户
     */
    @ApiModelProperty(value = "编辑用户", required = false)
    @TableField(value = "\"UPDATE_USER\"", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    /**
     * 编辑时间
     */
    @ApiModelProperty(value = "编辑时间", required = false)
    @TableField(value = "\"UPDATE_DATE\"", fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除", required = false)
    @TableField(value = "\"IS_DELETE\"", fill = FieldFill.INSERT)
    @TableLogic  //逻辑删除注解
    @JsonIgnore  //忽略
    private Integer isDelete;

    /**
     * 目录路径
     */
    @ApiModelProperty(value = "目录路径", required = false)
    // @NotEmpty(message = "目录路径不能为空")
    // @Length(max = 64, message = "目录路径不能超过 64 个字符")
    @TableField("\"DIR_PATH\"")
    private String dirPath;


}
